package com.fy.module.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiang
 * @since 2023-03-21
 */
@TableName("sys_permission")
@ApiModel(value = "Permission对象", description = "")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("菜单编码")
    @TableId(value = "permCode", type = IdType.ASSIGN_ID)
    private String permCode;

    @ApiModelProperty("功能名称")
    private String permName;

    @ApiModelProperty("请求路径")
    private String linkUrl;

    @ApiModelProperty("排序编号")
    private Integer permOrder;

    @ApiModelProperty("上级功能")
    private String parentPerm;

    @ApiModelProperty("权限描述")
    private String permDesc;

    @ApiModelProperty("是否展开")
    private String expanded;

    @ApiModelProperty("0:隐藏1：显示")
    private Integer show;

    @ApiModelProperty("是否叶子节点")
    private String leaf;

    public String getPermCode() {
        return permCode;
    }

    public void setPermCode(String permCode) {
        this.permCode = permCode;
    }
    public String getPermName() {
        return permName;
    }

    public void setPermName(String permName) {
        this.permName = permName;
    }
    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }
    public Integer getPermOrder() {
        return permOrder;
    }

    public void setPermOrder(Integer permOrder) {
        this.permOrder = permOrder;
    }
    public String getParentPerm() {
        return parentPerm;
    }

    public void setParentPerm(String parentPerm) {
        this.parentPerm = parentPerm;
    }
    public String getPermDesc() {
        return permDesc;
    }

    public void setPermDesc(String permDesc) {
        this.permDesc = permDesc;
    }
    public String getExpanded() {
        return expanded;
    }

    public void setExpanded(String expanded) {
        this.expanded = expanded;
    }
    public Integer getShow() {
        return show;
    }

    public void setShow(Integer show) {
        this.show = show;
    }
    public String getLeaf() {
        return leaf;
    }

    public void setLeaf(String leaf) {
        this.leaf = leaf;
    }

    @Override
    public String toString() {
        return "Permission{" +
            "permCode=" + permCode +
            ", permName=" + permName +
            ", linkUrl=" + linkUrl +
            ", permOrder=" + permOrder +
            ", parentPerm=" + parentPerm +
            ", permDesc=" + permDesc +
            ", expanded=" + expanded +
            ", show=" + show +
            ", leaf=" + leaf +
        "}";
    }
}
